import Vue from 'vue'
import hljs from 'highlight.js'
import 'highlight.js/styles/googlecode.css' // 样式文件
Vue.directive('highlight', function (el) {
	let blocks = el.querySelectorAll('pre code')
	blocks.forEach((block) => {
		hljs.highlightBlock(block)
	})
})
